// src/main.js
import {createApp} from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as echarts from 'echarts';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import {createPinia} from 'pinia';

const app = createApp(App)
    .use(createPinia());
app.config.globalProperties.$echarts = echarts;
app.use(router); // 注册路由
app.use(ElementPlus); // 注册 Element Plus
app.use(ElementPlusIconsVue); // 注册 Element Plus

app.mount('#app')
